package com.zzl.study.sharding.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @author: zhangzl
 * @date: 2022/6/27 16:18
 * @version: 1.0
 * @description: 订单对象
 */
@TableName("t_order")
@Data
public class Order {

    /**
     * 订单ID
     */
    @TableId("id")
    private Long id;

    /**
     * 订单编号
     */
    @TableField("order_num")
    private String orderNum;

    /**
     * 下单人
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

}
